x86-64: EFI runtime code
authorJan Beulich <jbeulich@novell.com>
Tue, 28 Jun 2011 08:20:49 +0000 (09:20 +0100)
committerJan Beulich <jbeulich@novell.com>
Tue, 28 Jun 2011 08:20:49 +0000 (09:20 +0100)
commitfacac0af87ef3e533d3690d76acaeaaa41e1631c
tree5239fbcadbd5b1a1c695869b10707deb15770777
parentbf6501a62e80ec1cf756290d4c3ec4991455f64e
x86-64: EFI runtime code

This allows Dom0 access to all suitable EFI runtime services. The
actual calls into EFI are done in "physical" mode, as entering virtual
mode has been determined to be incompatible with kexec (EFI's
SetVirtualAddressMap() can be called only once, and hence the
secondary kernel can't establish its mappings). ("Physical" mode here
being quoted because this is a mode with paging enabled [otherwise
64-bit mode wouldn't work] but all mappings being 1:1.)

Open issue (not preventing this from being committed imo):

Page (and perhaps other) faults occuring while calling runtime
functions in the context of a hypercall don't get handled correctly
(they don't even seem to reach do_page_fault()). I'm intending to
investigate this further.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
12 files changed:
xen/arch/x86/efi/boot.c
xen/arch/x86/efi/compat.c
xen/arch/x86/efi/efi.h
xen/arch/x86/efi/runtime.c
xen/arch/x86/efi/stub.c
xen/arch/x86/platform_hypercall.c
xen/arch/x86/shutdown.c
xen/arch/x86/time.c
xen/arch/x86/x86_64/platform_hypercall.c
xen/include/public/platform.h
xen/include/xen/efi.h
xen/include/xsm/xsm.h